package com.rao.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author mikasafan
 * @create 2021-06-30-18:50
 */
@Data
public class Product {

    private Long id;

    private String name;

    private Integer price;
    // 版本，用于控制乐观/悲观锁
    @Version
    private Integer version;
}
